import requests


class IaasConsoleProVrviuCom:

    base_url = "http://iaas-console.pro.vrviu.com"
    session = requests.Session()


    def get_instance_spec_list(self):
        path = "/api/inventory/instance-spec/list"
        request_url = IaasConsoleProVrviuCom.base_url + path
        data = {
                "Page": 1,
                "PageSize": 50,
                "SpecId": ["egc-x86gm1xda-v1-A"],
                "Category": "GPU"
            }
        resp = IaasConsoleProVrviuCom.session.post(url=request_url,json=data)
        print()


if __name__ == '__main__':
    IaasConsoleProVrviuCom().get_instance_spec_list()